package com.lin.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer uid;
    private String username;
    private String password;
    private String addr;
    private String birthday;
    private String sex;
    private int age;
    private String email;
    private int status;
    private Double money;

    public User(String username, String password, String addr, String birthday, String sex, int age, String email, int status, Double money) {
        this.username = username;
        this.password = password;
        this.addr = addr;
        this.birthday = birthday;
        this.sex = sex;
        this.age = age;
        this.email = email;
        this.status = status;
        this.money = money;
    }
    public User(Integer uid, String username, String password, String addr, String birthday, String sex, String email, int status, Double money) {
        this.username = username;
        this.password = password;
        this.addr = addr;
        this.birthday = birthday;
        this.sex = sex;
        this.age = age;
        this.email = email;
        this.status = status;
        this.money = money;
    }
}
